package com.a214.yxz.yuejian013.Base;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;

/**
 * Created by Oliver on 10/25/2017.
 */

public abstract class BaseSActivity extends AppCompatActivity {
    protected static String userId;
    protected static String userName;
    public static String phoneNum;
    public static String sessionID;

    public static String getUserId() {
        return userId;
    }

    public static void saveUserId(String user_id) {
        userId = user_id;
    }

    public static String getUserName() {
        return userName;
    }

    public static void setUserName(String userName) {
        BaseSActivity.userName = userName;
    }

    public static String getPhoneNum() {
        return phoneNum;
    }

    public static void savePhoneNum(String phoneNum) {
        BaseSActivity.phoneNum = phoneNum;
    }

    public static void saveSessionID(String session_id) {
        sessionID = session_id;
    }

    public static String getSessionID() {
        return sessionID;
    }

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
    }
}
